package com.shengqin.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shengqin.enums.OrgTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_org")
public class Org {
    private Integer id;
    private String name;
    @EnumValue
    private OrgTypeEnum type;
    private Integer parentId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    private Integer createUserId;
}
